-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only add entries after compilers have been created #1774
Only add entries after compilers have been created #1774
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1774 +/- ##
=======================================
Coverage 87.68% 87.68%
=======================================
Files 9 9
Lines 593 593
Branches 177 177
=======================================
Hits 520 520
Misses 61 61
Partials 12 12 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, looks we forget about remove this line, we need tests. We have regression after release 3.3.0
so i do release today, If you have time to add tests it will be good, otherwise I will write them myself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
/cc @evilebottnawi added tests |
Oops, I'll fix |
9db03d8
to
468e45f
Compare
/cc @hiroppy need rebase 😞 |
468e45f
to
4bf5d96
Compare
@evilebottnawi PTAL;) |
For Bugs and Features; did you add new tests?
No...
Motivation / Use-Case
Currently
addEntries
is called twice when using thecli
. First it is called here in the cli bin, and then always called again when we create the dev server instance by calling updateCompiler then here.This extra call is not needed, and actually causes an issue with my specific setup. In my Webpack config the
entry
is set dynamically via a plugin once the plugin has initialized. Since the first call toaddEntries
is ran on the raw config before any plugins run it is inaccurate and thinks that I have no entries, causing some issues. This would cause issues for any plugin which mutates the entries assuming it is used with thewebpack-dev-server
cli.Additional Info
If a test case is required for this then I'd be happy to work with someone to figure out the best way to integrate such a test into this suite. It looks like the CLI tests are fairly basic and separated from the server tests.